#include "smarthome.h"
#include <QApplication>
#include"land.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Smarthome w;

    Land m;
    if(m.exec()==QDialog::Accepted)//接收上一个界面发的信号
    {
        w.socketCom=m.socket;
        w.show();
        return a.exec();
    }
    else
        return 0;

}
